Skip to content

Build rpms - #37

Merged
timkpaine merged 5 commits into
mainfrom
tkp/rpm
Oct 13, 2026
Merged

timkpaine merged 5 commits into
mainfrom
tkp/rpm

Conversation

@timkpaine

@timkpaine timkpaine commented Aug 13, 2025 •

Copy link
Copy Markdown
Member

Build an rpm for every package that has a deb, and attach them to the release.

The rpms build in quay.io/pypa/manylinux_2_28_x86_64, the same image the python packages (verilator-python, openfpgaloader-python and the rest) build their wheels in. It is AlmaLinux 8 with glibc 2.28, so the rpms install on RHEL 8 and newer.

  • Each package's staging steps move into a <name>/stage target. <name>/debian and the new <name>/rpm both package that tree, so the deb builds are unchanged.
  • One rpm macro writes the spec and runs rpmbuild on the staged tree. The spec lists files and symlinks only, because EL's filesystem package owns /usr/local and its subdirectories.
  • Three container jobs mirror the deb jobs (main, verible, surfer).
  • The container differs from the Ubuntu runner in three ways the jobs account for: CMake 4 (CMAKE_POLICY_VERSION_MINIMUM=3.5 for capnproto), bison 3.0.4 (yosys needs 3.6, so the job builds 3.8.2), and GNUInstallDirs choosing lib64 (pinned to lib, which surelog's FindANTLR searches and which Ubuntu and macOS already use).
  • Removes the unfinished uhdm/rpm stub and fixes the clean target (antlr rather than antlr4, plus verilator, simview and the built packages).

Each package's staging moves into a <name>/stage target that both <name>/debian and a new <name>/rpm package. The rpm jobs run in quay.io/pypa/manylinux_2_28_x86_64, where the python packages build their wheels, and the release attaches the rpms beside the debs.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
…ckage

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine marked this pull request as ready for review October 13, 2026 16:32
@timkpaine
timkpaine merged commit ac15118 into main Oct 13, 2026
8 checks passed
@timkpaine
timkpaine deleted the tkp/rpm branch October 13, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant